//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

namespace Mindscape.BackgroundMotion.Core.Model
{
  /// <summary>
  /// Contract that defines a repository factory
  /// </summary>
  public interface IRepositoryFactory
  {
    /// <summary>
    /// Creates an new repository instance for the generic entity type T
    /// </summary>
    IRepository<T> Create<T>() where T : class, IIdentifiable;
  }
}